from models import db, BaseModel


class UserRole(BaseModel):
    """
    r_用户角色关系模型
    """
    __tablename__ = "sys_user_role"
    __table_args__ = ({"comment": "r_用户角色关系"})
    userId = db.Column(db.BigInteger, name="user_id", unique=False, nullable=True, comment="用户ID")
    roleId = db.Column(db.BigInteger, name="role_id", unique=False, nullable=True, comment="角色ID")
    createTime = None
    createUser = None
    updateTime = None
    updateUser = None
    isDeleted = None
